package cn.labbook.bluetooth.util.p645;

import lombok.Data;

/**
 * Created by Administrator on 2018/12/28.
 */
@Data
public class Protocol645 implements TransparentProtocol {

    private byte origin1 = 0x68;

    private byte[] address;

    private byte origin2 = 0x68;

    private byte control;

    private byte l;

    private byte[] data;

    private byte cs;

    private byte tail = 0x16;

    @Override
    public int getCompleteLength() {
        return Protocol645Utils.getCompleteProtocolLength(this);
    }

    @Override
    public byte[] toBytes() {
        return Protocol645Utils.toBytes(this);
    }
}
